#ifndef __LIST_H
#define __LIST_H

#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <string.h>
#include "platform.h"

typedef struct _data
{
    uint16 id;
    uint8 age;
    char* name;
}dataEntry;

typedef struct _list
{
    dataEntry data;
    struct _list *prev;
    struct _list *next;
}list;

Ret_Status list_init(list* plist);
Ret_Status list_insert(list** plist,list* data);
Ret_Status list_remove(list** plist,uint8 id);
uint8 list_sizeInfo(list* plist);

#endif
